SET(PROJ_NAME hal_camera)

include_directories(${PROJECT_SOURCE_DIR}/hal/common/include/3516cv610)

# Add macro definition for inner audio codec
add_definitions(-DOT_ACODEC_TYPE_INNER)
add_definitions(-DSENSOR0_TYPE=SC4336P_MIPI_4M_30FPS_10BIT)
add_definitions(-DSC4336P_MIPI_4M_30FPS_10BIT_SELECT=y)
add_definitions(-DSENSOR1_TYPE=SC4336P_MIPI_4M_30FPS_10BIT)
add_definitions(-DSC4336P_MIPI_4M_30FPS_10BIT_SELECT=y)

file(GLOB_RECURSE CPP_SOURCE_FILE "*.cpp")
file(GLOB_RECURSE CPP_HEADERS_FILE "*.hpp")
file(GLOB_RECURSE C_SOURCE_FILE "*.c")
file(GLOB_RECURSE C_HEADERS_FILE "*.h")

set(ALL_HDRS ${CPP_HEADERS_FILE} ${C_HEADERS_FILE})
set(ALL_SOURCES ${CPP_SOURCE_FILE} ${C_SOURCE_FILE})

add_library(${PROJ_NAME} STATIC ${ALL_HDRS} ${ALL_SOURCES})

# 增加动态库的路径
link_directories(${PROJECT_SOURCE_DIR}/device/soc/hisilicon/3516cv610/lib)
link_libraries(${PROJ_NAME} hi_mpi)
